import request from '@/utils/request'

export function getStudentList(data) {
  return request({
    url: '/student',
    method: 'post',
    data
  })
}

export function getNoChooseStudents() {
  return request({
    url: '/student',
    method: 'get'
  })
}

export function addStudent(data) {
  return request({
    url: '/student/add',
    method: 'post',
    data
  })
}

export function deleteStudent(id) {
  return request({
    url: '/student/delete',
    method: 'delete',
    params: { id }
  })
}
